Skip to content

[PWGUD] Update FwdMuonsUPC#16307

Merged
rolavick merged 34 commits into
AliceO2Group:masterfrom
ariffero:dev-mytask
Jun 1, 2026
Merged

[PWGUD] Update FwdMuonsUPC#16307
rolavick merged 34 commits into
AliceO2Group:masterfrom
ariffero:dev-mytask

Conversation

@ariffero
Copy link
Copy Markdown
Contributor

  • Change V0A veto: veto only sel BC
  • Remove histos and related configs
  • Add checks on two-trakcs cand in FwdMuonsUPC
  • Clean up of the task

@github-actions github-actions Bot added the pwgud label May 19, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 19, 2026

O2 linter results: ❌ 1 errors, ⚠️ 0 warnings, 🔕 0 disabled

@ariffero ariffero marked this pull request as ready for review May 21, 2026 14:06
Copy link
Copy Markdown
Collaborator

@rolavick rolavick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Andrea,
please, see this PR #15390 it seems you are reverting its changes. (usage of "" and <> in includes)
Also, please change the name of the file in a way that it does not start with a capital letter, so FwdMuonsUPC.cxx -> fwdMuonsUPC.cxx
Roman

@ariffero
Copy link
Copy Markdown
Contributor Author

Hi Andrea, please, see this PR #15390 it seems you are reverting its changes. (usage of "" and <> in includes) Also, please change the name of the file in a way that it does not start with a capital letter, so FwdMuonsUPC.cxx -> fwdMuonsUPC.cxx Roman

Hi Roman, thanks for spotting that, I did not notice it before. Now it should be ok.
Cheers,
Andrea

Warnings on: PDG codes, header brackets and header included
@vkucera
Copy link
Copy Markdown
Collaborator

vkucera commented May 22, 2026

Hi Andrea, please, see this PR #15390 it seems you are reverting its changes. (usage of "" and <> in includes) Also, please change the name of the file in a way that it does not start with a capital letter, so FwdMuonsUPC.cxx -> fwdMuonsUPC.cxx Roman

Hi Roman, thanks for spotting that, I did not notice it before. Now it should be ok. Cheers, Andrea

Hi Andrea, it does not seem OK to me. You are still removing a lot of includes without apparent corresponding code changes.

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
HistogramRegistry mcRecoRegistry{"mcRecoRegistry", {}, OutputObjHandlingPolicy::AnalysisObject, true, true};

// CONFIGURABLES
static constexpr double Pi = o2::constants::math::PI;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not duplicate existing constants.

Suggested change
static constexpr double Pi = o2::constants::math::PI;

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
Comment on lines 209 to 211
Configurable<int> nBinsRapidity{"nBinsRapidity", 250, "N bins in rapidity histo"};
Configurable<float> lowRapidity{"lowRapidity", -4.5, "lower limit in rapidity histo"};
Configurable<float> highRapidity{"highRapidity", -2., "upper limit in rapidity histo"};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is ConfigurableAxis for this.

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tracks is not modified and should be passed by const&.

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
if (candId < 0) {
continue;
}
if (std::abs(tr.pdgCode()) != pdg->GetParticle("mu-")->PdgCode()) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which PDG code do you want here?

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
Comment on lines 307 to 312
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Members are not initialised.

Comment thread PWGUD/Tasks/fwdMuonsUPC.cxx Outdated
TLorentzVector p;
auto mMu = particleMass(kMuonPDG);
p.SetXYZM(fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), mMu);
ROOT::Math::PxPyPzMVector p{fwdTrack.px(), fwdTrack.py(), fwdTrack.pz(), o2::constants::physics::MassMuon};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need a 4-vector?

Comment on lines 371 to 384
@@ -514,9 +384,9 @@ struct FwdMuonsUPC {
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems overcomplicated. Don't you just want to pick randomly -1 or 1?

@vkucera vkucera marked this pull request as draft May 23, 2026 21:44
ariffero and others added 15 commits May 27, 2026 17:27
Please consider the following formatting changes to AliceO2Group#16307
Use pDCA and max amplitude of V0A as configurables instead of hard coded values.
For gen events that pass the reco, the calculation of the momentum of the pair had a typo.
Add check on number of tracks per candidates in the reco MC workflow.
Add a return if gen tracks are not muons
Remove misleading check on zdc time
Remove commented out code and old comments
Re-implmenting commit 14410d7, that was cancelled by commit 189d423
@ariffero ariffero marked this pull request as ready for review May 29, 2026 12:55
@rolavick rolavick merged commit 38574ae into AliceO2Group:master Jun 1, 2026
12 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

4 participants